home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Very Best of Atari Inside
/
The Very Best of Atari Inside 1.iso
/
mint
/
mntlib43
/
mntlib
/
fgetc.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-09-17
|
194b
|
13 lines
#include <stdio.h>
int fgetc(fp)
FILE *fp;
{
int c;
do {
c = --fp->_cnt >= 0 ? ((int)*fp->_ptr++) : _filbuf(fp);
} while ((!(fp->_flag & _IOBIN)) && (c == '\r'));
return c;
}